package com.anyou.mall.order.orderGoods.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 订单商品对象 ord_order_goods
 *
 * @author xq
 * @date 2022-03-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "订单商品")
@TableName(value = "ord_order_goods")
public class OrdOrderGoods
{
    private static final long serialVersionUID = 1L;

    /** 订单商品编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("订单商品编号")
    private Long orderGoodsId;

    /** 订单号 */
    @ApiModelProperty("订单号")
    @Excel(name = "订单号")
    private String orderNo;

    /** 商品sku编号 */
    @ApiModelProperty("商品sku编号")
    @Excel(name = "商品sku编号")
    private Long goodsSkuId;

    /** 商品数量 */
    @ApiModelProperty("商品数量")
    @Excel(name = "商品数量")
    private Long goodsNumber;

    /** 商品价格 */
    @ApiModelProperty("商品单价")
    @Excel(name = "商品单价")
    private BigDecimal goodsPrice;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic( value = "0",delval = "2" )
    private String delFlag;

    /** 商品名称 */
    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称")
    @TableField(exist = false)
    private String goodsName;

    /** 商品图片 */
    @ApiModelProperty("商品图片")
    @Excel(name = "商品图片")
    @TableField(exist = false)
    private String goodsImgUrl;

    /** 规格组合值（json组装规格id和规格值id及值） */
    @ApiModelProperty("规格组合值（json组装规格id和规格值id及值）")
    @Excel(name = "规格组合值（json组装规格id和规格值id及值）")
    @TableField(exist = false)
    private String specsCompose;

}
